'''
1*1  1   a  b
1*2 2*2  2
1*3 2*3 3*3  3
...
1*9 2*9 3*9 ... 9*9   9  i+1
'''
# 第一步：拆解 9行n列
for i in range(9):  # 9行  i = 0
    for j in range(i + 1):  # j = 0
        num1 = j + 1
        num2 = i + 1
        total = num1 * num2
        print("%d*%d=%d" % (num1, num2, total), end=" ")
    print()

'''
*
**
***
****
...
*********   9行n列
'''
# for i in range(9):
#     for j in range(i + 1):
#         print("*" * j)
